﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace Web
{
    public partial class Perfiles : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataRow dtrow;
            DataTable dtNewTable;
            dtNewTable = new DataTable();
            DataColumn dtcol0, dtcol1, dtcol2;

            dtcol0 = new DataColumn();
            dtcol1 = new DataColumn();
            dtcol2 = new DataColumn();

            dtcol0.DataType = Type.GetType("System.String");
            dtcol0.ColumnName = "Perfil";
            dtNewTable.Columns.Add(dtcol0);
            dtcol1.DataType = Type.GetType("System.String");
            dtcol1.ColumnName = "Glosa";
            dtNewTable.Columns.Add(dtcol1);
            dtcol2.DataType = Type.GetType("System.String");
            dtcol2.ColumnName = "Perfiles";
            dtNewTable.Columns.Add(dtcol2);

            dtrow = dtNewTable.NewRow();
            dtrow["Perfil"] = "Administrador";
            dtrow["Glosa"] = "Coordinador de ruta";
            dtrow["Perfiles"] = "Administrador, Usuario, Coordinador";
            dtNewTable.Rows.Add(dtrow);

            //dtrow = dtNewTable.NewRow();
            //dtrow["Perfil"] = "TCL2";
            //dtrow["Glosa"] = "Bodega Repuestos Pequeños";
            //dtrow["Perfiles"] = "G01, G24, G25, G26, G27";
            //dtNewTable.Rows.Add(dtrow);

            GridView_Perfiles.DataSource = dtNewTable;
            GridView_Perfiles.DataBind();
        }
    }
}
